package com.coco.service;

import com.coco.entity.UserInfo;
import com.coco.model.UserInfoCondition;
import com.coco.utils.CoPageResp;
import org.springframework.http.ResponseEntity;

import javax.servlet.http.HttpServletRequest;

/**
 * @author GHOSTLaycoo
 * @date 2020/2/28 0028 - 下午 16:16
 */

public interface UserService {
    String selectByUserInfo(String username, String password);

    CoPageResp<UserInfo> getUserByCondition(UserInfoCondition user);

    int save(UserInfo user);

    int update(UserInfo user);

    int delete(String id);

    int updateStatus(String id, String status, HttpServletRequest request);

    UserInfo getUserInfoById(String id);
}
